<?php

namespace App\Http\Model\Api;

use App\Http\Base\BaseModel;

class Banner extends BaseModel
{
    /**
     * 关联到模型的数据表
     *
     * @var string
     */
    protected $table = 'banner';

    protected $guarded = [];

    public function getList()
    {
        $where['is_show'] = 0;
        return $this->where($where)->offset(0)->limit(5)->get();
    }

}
